<!-- 消息发布概况 -->
<template>
  <div class="bottom">
    <div class="header-box">
      <div>
        <p>通知发布数量</p>
        <p>2022年08月</p>
        <p><span>0</span>条</p>
      </div>
      <div>
        <p>相册发布数量</p>
        <p>2022年08月</p>
        <p><span>0</span>条</p>
      </div>
      <div>
        <p>评价发布数量</p>
        <p>2022年08月</p>
        <p><span>0</span>条</p>
      </div>
      <div>
        <p>投票发布数量</p>
        <p>2022年08月</p>
        <p><span>0</span>条</p>
      </div>
    </div>
    <div class="quantity">
      <echartVue></echartVue>
      <div class="check" @click="router.push('/index/messageStatistics/message_list')">查看更多></div>
      <div class="school_List">
        <span class="check2" @click="router.push('/index/messageStatistics/school_ranking')">查看更多></span>
        <schooList></schooList>
      </div>
      <div class="teacher_List">
        <span class="check3" @click="router.push('/index/messageStatistics/teacher_ranking')">查看更多></span>
        <teacherList></teacherList>
      </div>
    </div>
  </div>


</template>

<script setup>
import { onMounted, ref } from "vue";
import echartVue from "../../../components/echart.vue";
import schooList from "../../../components/shoolList.vue"
import teacherList from "../../../components/teacherList.vue"
import { useRouter } from 'vue-router'

var router = useRouter()


</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}

.bottom {
  width: 100%;
  height: auto;
  background-color: #f7f7f7;

  .header-box {
    width: 100%;
    display: flex;
    justify-content: space-between;

    div:nth-child(1) {
      width: 20%;
      height: 114px;
      background-color: #8693f3;
      color: #fff;
      font-size: 12px;
      border-radius: 5px;
      padding: 0 15px;

      p {
        padding-top: 10px;

        span {
          font-size: 24px;
          font-weight: bolder;
          // color: #f00;
          margin: 0 10px 0 0;
        }
      }
    }

    div:nth-child(2) {
      width: 20%;
      height: 114px;
      background-color: #bc8dee;
      color: #fff;
      font-size: 12px;
      border-radius: 5px;
      padding: 0 15px;

      p {
        padding-top: 10px;

        span {
          font-size: 24px;
          font-weight: bolder;
          // color: #f00;
          margin: 0 10px 0 0;
        }
      }
    }

    div:nth-child(3) {
      width: 20%;
      height: 114px;
      background-color: #ffa897;
      color: #fff;
      font-size: 12px;
      border-radius: 5px;
      padding: 0 15px;

      p {
        padding-top: 10px;

        span {
          font-size: 24px;
          font-weight: bolder;
          // color: #f00;
          margin: 0 10px 0 0;
        }
      }
    }

    div:nth-child(4) {
      width: 20%;
      height: 114px;
      background-color: #89c3f8;
      color: #fff;
      font-size: 12px;
      border-radius: 5px;
      padding: 0 15px;

      p {
        padding-top: 10px;

        span {
          font-size: 24px;
          font-weight: bolder;
          // color: #f00;
          margin: 0 10px 0 0;
        }
      }
    }
  }
}

.quantity {
  width: 100%;
  margin-top: 20px;
  padding-bottom: 20px;

  position: relative;

  .check {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 100;
    font-size: 14px;
    color: #999;
  }

  .check:hover {
    color: rgb(23, 144, 255);
    cursor: pointer;
  }

  .school_List {
    width: 100%;
    margin-top: 20px;
    position: relative;
    .check2 {
      position: absolute;
      top: 20px;
      right: 40px;
      z-index: 100;
      font-size: 14px;
      color: #999;
    }

    .check2:hover {
      color: rgb(23, 144, 255);
      cursor: pointer;
    }
  }
  .teacher_List {
    width: 100%;
    margin-top: 20px;
    position: relative;
    .check3 {
      position: absolute;
      top: 20px;
      right: 40px;
      z-index: 100;
      font-size: 14px;
      color: #999;
    }

    .check3:hover {
      color: rgb(23, 144, 255);
      cursor: pointer;
    }
  }
}
</style>